import request from '@/utils/request'

// 查询列表
export function listEhArticle(query) {
    return request({
        url: '/user/api/eharticle/list',
        method: 'post',
        data: query
    })
}

// 查询详细
export function getEhArticle(articleId) {
    return request({
        url: '/user/api/eharticle/articleInfo/' + articleId,
        method: 'get'
    })
}

// 新增
export function addEhArticle(data) {
    return request({
        url: '/user/api/eharticle/save',
        method: 'post',
        data: data
    })
}

// 修改
export function updateEhArticle(data) {
    return request({
        url: '/user/api/eharticle/update',
        method: 'post',
        data: data
    })
}

// 删除
export function delEhArticle(articleId) {
    return request({
        url: '/user/api/eharticle/delete/' + articleId,
        method: 'get'
    })
}
// 批量删除
// export function delEhArticle(data) {
//     return request({
//         url: '/wx/eharticle/deleteBatch',
//         method: 'post',
//         data: data
//     })
// }
